package com.wangjw.ideaSkill;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wangjw on 18/6/7.
 */
public class IdeaTester {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("wangjw");
        list.add("nijj");
        list.add("wangmz");

        String result = getResult(list);
        System.out.println(result);
    }

    private static String getResult(List<String> list) {
        if (list == null || list.isEmpty()) {
            return null;
        }

        StringBuilder sb = new StringBuilder("");
        for (String str : list) {
            sb.append(str).append(" ");
        }

        String result = sb.toString();
        return result.substring(0, result.length() - 1);
    }

    public enum Status {
        CONTINUE(100),
        PROCESSING(102),
        CHECKPOINT(103);

        private int code;

        Status(int code) {
            this.code = code;
        }
    }
}